package com.yand.thinkingInJava;

public class MyThread extends Thread {
    private Aa aa;

    public MyThread(Aa aa){
        this.aa = aa;
    }



    public void run(){
        System.out.println(getName()+"get num is =="+aa.getNum());

        aa.add();

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


    }


}
